import request from '@/utils/request'

// 查询报销列表
export function listFee(query) {
  return request({
    url: '/system/fee/list',
    method: 'get',
    params: query
  })
}


// 删除报销
export function delFee(compFeeIds) {
  return request({
    url: '/system/fee/' + compFeeIds,
    method: 'delete'
  })
}
// 根据用户编号获取详细信息
export function getuser(userId) {
  return request({
    url: '/system/user/' + userId,
    method: 'get'
  })
}

export function feeAdd(data) {
  return request({
    url: '/system/fee',
    method: 'post',
    data: data
  })
}
export function updateFee(data) {
  return request({
    url: '/system/fee',
    method: 'put',
    data: data
  })
}
export function infoFee(id) {
  return request({
    url: '/system/fee/' + id,
    method: 'get',
    params: id
  })
}